package com.web.wx.controller;

import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.catalina.connector.Request;

import com.entity.weixin.PayCommonUtil;
import com.sun.org.apache.xerces.internal.impl.dv.xs.DecimalDV;

public class test {
    
    
    public static void main(String[] args){
	System.out.println(PayCommonUtil.getCurrentTimeMillis());
	String order_pay = "0.01";// 元
	
	double pay=Double.parseDouble(order_pay)*100*1000/1000;
	System.out.println(pay);
	
        
        DecimalFormat format = new DecimalFormat("#");
        String sMoney = format.format(pay);
        System.out.println(sMoney);
        
        order_pay = "19.01";// 元
	pay=Double.parseDouble(order_pay)*100;
	 sMoney = format.format(pay);
	 System.out.println(sMoney);
//	String order_price = String.valueOf(Integer.valueOf(order_pay) * 100);// 分
    }
    
    

}
